import {
  YN_SELECT_LIST,
  PRODUCT_GRADE_CH_SELECT_LIST,
  METAL_SELECT_LIST,
  PRODUCT_GRADE_SELECT_LIST,
  BRAND_INFLUENCE_SELECT_LIST,
  STOREHOUSE_NATURE_SELECT_LIST,
  PLANT_NATURE_SELECT_LIST,
  ENTERPRISE_SIZE_SELECT_LIST,
  COORDINATION_TYPE_SELECT_LIST,
  SELF_PLATFORM_SELECT_LIST,
  // ACCEPT_RATIO_SELECT_LIST,
  // ACCEPT_PERIOD_SELECT_LIST,
  SUPPLIER_NATURE_CLASSIFY_SELECT_LIST,
  FLOAT_WARN_SELECT_LIST,
  COMMERCIAL_ACCEPTANCE_LIST
} from '@/pages/supplier/constants/common'
const hrAreaId = localStorage.userInfo ? JSON.parse(localStorage.userInfo).hrAreaId : ''

// 工商信息
const BUSINESS_INFORMATION_FIELDS = [
  { prop: 'supplierNatureClassify', label: '性质分类', required: true, type: 'select', options: SUPPLIER_NATURE_CLASSIFY_SELECT_LIST },
  { prop: 'enterpriseName', label: '企业名称', required: true, maxlength: 100 },
  { prop: 'legalPerson', label: '法定代表人', required: true, disabled: true },
  { prop: 'regCapital', label: '注册资本（万元）', required: true, disabled: true },
  { prop: 'paidInCapital', label: '实缴资本', required: true, disabled: true },
  { prop: 'unifiedSocialCreditCode', label: '统一社会信用代码', required: true, disabled: true },
  { prop: 'establishmentDate', label: '成立日期', type: 'datetime', required: true, disabled: true },
  { prop: 'approvalDate', label: '核准日期', type: 'datetime', required: true, disabled: true },
  { prop: 'organizationCode', label: '组织机构代码', required: true, disabled: true },
  { prop: 'businessRegNumber', label: '工商注册号', required: true, disabled: true },
  { prop: 'taxpayerIdentityNumber', label: '纳税人识别号', required: true, disabled: true },
  { prop: 'enterpriseType', label: '企业类型', required: true, disabled: true },
  { prop: 'belongIndustry', label: '所属行业', required: true, disabled: true },
  { prop: 'belongRegion', label: '所属地区', required: true, disabled: true },
  { prop: 'regAuthority', label: '登记机关', required: true, disabled: true },
  { prop: 'registerAddress', label: '注册地址', required: true, disabled: true },
  { prop: 'businessTermStart', label: '营业期限起', disabled: true },
  { prop: 'businessTermEnd', label: '营业期限止', disabled: true },
  { prop: 'businessScope', label: '经营范围', colSpan: 24, type: 'textarea', required: true, disabled: true },
]

// 基础信息
const BASIC_INFORMATION_FIELDS = [
  { prop: 'enterpriseSize', label: '企业规模', required: true, type: 'select', options: ENTERPRISE_SIZE_SELECT_LIST },
  { prop: 'staffSize', label: '人员规模（人）', required: true, type: 'number', maxlength: 999999999999 },
  { prop: 'supplierNature', label: '供应商性质', required: true, type: 'select', dict: 232 },
  { prop: 'plantNature', label: '厂房性质', required: true, type: 'select', options: PLANT_NATURE_SELECT_LIST },
  { prop: 'plantAddress', label: '厂房地址' },
  { prop: 'storehouseNature', label: '库房性质', required: true, type: 'select', options: STOREHOUSE_NATURE_SELECT_LIST },
  { prop: 'storehouseAddress', label: '库房地址' },
  { prop: 'officialWebsite', label: '官网' },
  { prop: 'selfPlatform', label: '自主/第三方平台', required: true, type: 'select', options: SELF_PLATFORM_SELECT_LIST },
  { prop: 'coordinationType', label: '协同方式', required: true, type: 'select', options: COORDINATION_TYPE_SELECT_LIST },
  { prop: 'customerGroups', label: '客户群体', required: true, maxlength: 30 },
  { prop: 'telephone', label: '固话号码', maxlength: 20 },
  { prop: 'faxNumber', label: '传真号码', maxlength: 20 },
]

// 生产信息
const PRODUCTION_INFORMATION_FIELDS = [
  // { prop: 'rawMaterialSupplier', label: '原材料供应商', maxlength: 100 },
  // { prop: 'coreRawMaterialName', label: '核心原材料名称', required: true, maxlength: 100 },
  { prop: 'annualOutputValue', label: '年产值（万元）', type: 'number', max: 999999999999.999 },
  { prop: 'dailyProduction', label: '日产量（万元）', required: true, type: 'number', max: 999999999.999 },
  { prop: 'assemblyLineCount', label: '生产流水线数量（条）', type: 'number', max: 99999999.999 },
  { prop: 'equipmentCount', label: '设备数量（台）', type: 'number', max: 9999999.999 },
  { prop: 'equipmentRemark', label: '设备说明' },
  { prop: 'canLease', label: '是否租赁', required: true, type: 'select', options: YN_SELECT_LIST, defaultValue: 2 },
  { prop: 'canOem', label: '是否代加工', required: true, type: 'select', options: YN_SELECT_LIST, defaultValue: 2 },
  { prop: 'oemBrand', label: '代工品牌', maxlength: 100 },
  { prop: 'oemGrade', label: '档次', maxlength: 100, type: 'select', options: PRODUCT_GRADE_CH_SELECT_LIST },
  { prop: 'inventory', label: '存货量（万元）', maxlength: 30 },
]

// 商品信息
const PRODUCT_INFORMATION_FIELDS = [
  { prop: 'mainCategoryCode', label: '主营品类代码', required: true, disabled: true },
  { prop: 'mainCategory', label: '主营品类', required: true, type: 'categorySelect' },
  { prop: 'metal', label: '是否金属', required: false, disabled: true, type: 'select', options: METAL_SELECT_LIST },
  { prop: 'manageCategory', label: '经营品类', required: true, type: 'button', buttonList: [{ label: '修改', key: 'edit' }, { label: '查看', key: 'view' }] },
  { prop: 'mainProduct', label: '主营商品', required: true, maxlength: 50 },
  { prop: 'brandCountry', label: '品牌国别', required: true, type: 'select', filterable: true, sysDict: 10162, defaultValue: 40502 },
  { prop: 'directImport', label: '是否直接进口', required: true, type: 'select', options: YN_SELECT_LIST, defaultValue: 2 },
  { prop: 'commodityRegNumber', label: '商品信息注册号', type: 'number' },
  { prop: 'exclusiveTerm', label: '专用权期限', type: 'datetime' },
  { prop: 'patentNumber', label: '专利信息申请号', type: 'number', },
  { prop: 'patentState', label: '专利信息状态', maxlength: 100 },
  { prop: 'productGrade', label: '产品档次', required: true, type: 'select', options: PRODUCT_GRADE_SELECT_LIST },
  { prop: 'brandInfluence', label: '品牌影响力', required: true, type: 'select', options: BRAND_INFLUENCE_SELECT_LIST },
  { prop: 'competitiveBrand', label: '竞争品牌', required: true, maxlength: 50 },
  { prop: 'advantageousArea', label: '优势区域', required: true, maxlength: 100 },
  { prop: 'bastSellerSpec', label: '畅销品（规格）', maxlength: 100 },
  { prop: 'warrantyPeriod', label: '保质/保修期（天）', maxlength: 15 },
  { prop: 'warrantyPeriodStandard', label: '保质/保修期标准', maxlength: 200 },
  { prop: 'qualityCompensation', label: '质量赔付标准', maxlength: 200 },
  { prop: 'salesSupport', label: '售后支持标准', maxlength: 200 },
  { prop: 'marketValue', label: '面价', required: true, type: 'select', dict: 18 },
  { prop: 'marketValueRemark', label: '面价说明', type: 'annex', typeList: 'xlsx/xls/docx/doc/pdf/jpge/jpg/png' },
  { prop: 'priceControlCycle', label: '价格管理周期（天）', required: true, type: 'select', dict: 249 },
  { prop: 'priceRatio', label: '与我司同品类供应商价格差率', type: 'number' },
  { prop: 'unifiedPrice', label: '是否全国统一价', required: true, type: 'select', sysDict: 10040 },
]

// 管理信息
const MANAGEMENT_INFORMATION_FIELDS = [
  { prop: 'supplierCode', label: '供应商代码', disabled: true },
  { prop: 'supplierName', label: '供应商名称', required: true, maxlength: 100 },
  { prop: 'gainSource', label: '供应商来源', required: true, type: 'select', filterable: true, dict: 227 },
  { prop: 'exhibitionName', label: '展会名称', maxlength: 50 },
  { prop: 'signContract', label: '是否签合同', required: true, type: 'select', options: YN_SELECT_LIST, defaultValue: 2 },
  { prop: 'supplierLevel', label: '供应商等级', required: true, type: 'select', dict: 22 },
  { prop: 'supplierType', label: '供应商类型', disabled: true, type: 'select', sysDict: 10130 },
  { prop: 'managementAreaId', label: '供应商管理区域', required: true, type: 'managementArea', disabled: true, hrAreaId },
  { prop: 'belongDepartment', label: '供应商归属中心', required: true, type: 'select', filterable: true, dict: 233, disabledValues: [200] },
  { prop: 'centralPurchase', label: '是否集采', required: true, type: 'select', dict: 18 },
  { prop: 'businessContact', label: '公司业务对接人', required: true, type: 'userSelect' },
  { prop: 'upstreamSupplier', label: '上游供应商名称', maxlength: 100 },
  { prop: 'upstreamSupplierStandard', label: '上游供应商合作标准', type: 'number', max: 999999999999.999 },
  { prop: 'sameTradePriceRatio', label: '与其他客户价格差率', type: 'number', max: 9999999.999 },
  { prop: 'cooperativeClassify', label: '合作关系分类', required: true, type: 'select', sysDict: 10158, defaultValue: 40468 },
  { prop: 'cooperativeIndustry', label: '合作行业', required: true, type: 'select', sysDict: 10159, filterable: true },
  { prop: 'introductionReason', label: '引入原因', required: true, type: 'select', sysDict: 10160 },
  { prop: 'supplierClassify', label: '供应商分类', disabled: true, type: 'select', sysDict: 10138 },
  { prop: 'expenseInvoice', label: '是否开费用发票', required: true, type: 'select', sysDict: 10040 },
  { prop: 'inspectCycle', label: '考察周期', required: true, type: 'select', dict: 234 },
  { prop: 'accountPhone', label: '协同平台管理手机号', required: true, minlength: 11, maxlength: 11 },
  { prop: 'coordination', label: '是否线上协同', disabled: true, defaultValue: 18913, type: 'select', sysDict: 10040 },
  { prop: 'notOpenReason', label: '不开通原因' },
  { prop: 'inquiryBillCoordination', label: '询价单是否协同', disabled: true, defaultValue: 18913, type: 'select', sysDict: 10040 },
  { prop: 'bulkOrderDiscount', label: '批量订货优惠', required: true, type: 'select', dict: 18 },
  { prop: 'bulkOrderDiscountRemark', label: '批量优惠说明', maxlength: 200 },
  { prop: 'costCalculation', label: '成本核算', required: true, type: 'select', dict: 18 },
  { prop: 'costCalculationFormula', label: '成本核算公式表', type: 'annex', typeList: 'xlsx/xls/docx/doc/pdf/jpge/jpg/png' },
  { prop: 'branchOfficeInquiry', label: '分公司是否可询价', required: true, type: 'select', sysDict: 10040 },
  { prop: 'branchOfficeOrder', label: '分公司是否可订货', required: true, type: 'select', sysDict: 10040 },
  { prop: 'projectFiling', label: '项目报备', required: true, type: 'select', sysDict: 10040 },
  { prop: 'projectFilingContent', label: '报备内容', },
  { prop: 'cooperationNote', label: '采购人员评估及合作注意事项', maxlength: 1000 },
  { prop: 'rawMaterialOverFloatWarn', label: '原材料超浮动预警', required: true, type: 'select', options: FLOAT_WARN_SELECT_LIST, defaultValue: 1 },
  { prop: 'openRedInvoice', label: '是否可开红数发票', required: true, type: 'select', options: YN_SELECT_LIST, defaultValue: 2 },
  { prop: 'createUser', label: '创建人', disabled: true },
  { prop: 'createTime', label: '创建日期', disabled: true, type: 'datetime' },
]
// 结算方式
const BILLING_METHOD_FIELDS = [
  // { prop: 'discountTaxRate', label: '贴息部分补税税率(%)', required: true, type: 'inputNum', min: 0, max: 30, precision: 4, defaultValue: 0 },
  // { prop: 'settlementType', label: '结算方式', source: 'contract', type: 'select', sysDict: 16 },
  { prop: 'commercialAcceptanceTypeArray', label: '商业承兑票据类型', type: 'select', multiple: true, collapseTags: false, options: COMMERCIAL_ACCEPTANCE_LIST },
  { prop: 'creditAcceptanceType', label: '信用票据承兑类型' },
  { prop: 'acceptInvoice', label: '是否承兑', disabled: true, type: 'select', options: YN_SELECT_LIST },
  // { prop: 'acceptRatio', label: '承兑比例', type: 'select', options: ACCEPT_RATIO_SELECT_LIST },
  // { prop: 'acceptMoney', label: '承兑金额(万元)', type: 'number', max: 999999999999.999 },
  // { prop: 'acceptPeriod', label: '银行承兑期限（月）', type: 'select', options: ACCEPT_PERIOD_SELECT_LIST },
  // { prop: 'commercialAcceptancePeriod', label: '商业承兑期限（天）', type: 'number', precision: 0, min: 1, max: 365 },
  // { prop: 'acceptDiscountPoint', label: '承兑贴息点位（%）', required: false, disabled: false, type: 'number', min: 0 },
  { prop: 'acceptBankRequire', label: '承兑银行有无要求', type: 'select', dict: 264 },
  { prop: 'acceptConversionFactor', label: '承兑折算系数', required: false, disabled: false, type: 'number' },
  { prop: 'acceptBankRequireRemark', label: '承兑银行要求描述', type: 'annex', typeList: 'xlsx/xls/docx/doc/pdf/jpge/jpg/png' },
]

// 结算信息
const BILLING_INFORMATION_FIELDS = [
  { prop: 'reconciliationDate', label: '对账日', source: 'contract', type: 'select', dict: 263 },
  { prop: 'checkoutTime', label: '结账时间', source: 'contract', type: 'select', sysDict: 15 },
  { prop: 'paidType', label: '付款方式', disabled: true, source: 'contract', type: 'select', sysDict: 10131 },
  { prop: 'checkoutRange', label: '结账区间', source: 'contract', type: 'select', sysDict: 10133 },
  // { prop: 'settlementType', label: '结算方式', source: 'contract', type: 'select', sysDict: 16, disabledValues: [40904, 40905, 40906, 40907] },
  // { prop: 'creditScale', label: '信用凭证比例（%）', source: 'contract', type: 'number', min: 0, max: 100 },
  // { prop: 'creditTerm', label: '信用凭证期限（月）', source: 'contract', type: 'number', min: 0, max: 999 },
  { prop: 'fiscalPeriodDays', label: '账期天数', type: 'number', disabled: true },
  // { prop: 'fiscalPeriodConvertModulus', label: '账期折算系数', required: false, disabled: false },
  { prop: 'generalTaxpayer', label: '纳税人类型', required: true, type: 'select', dict: 310 },
  { prop: 'invoiceType', label: '发票类型', source: 'contract', type: 'select', sysDict: 521 },
  { prop: 'taxBillRate1', label: '税票率1', source: 'contract', type: 'select', sysDict: 10100 },
  { prop: 'taxBillRate2', label: '税票率2', source: 'contract', type: 'select', sysDict: 10100 },
  { prop: 'taxBillProvideTime', label: '税票提供时间', type: 'select', dict: 111 },
  { prop: 'miniInvoiceMoney', label: '最低开票限额（元）', type: 'number', max: 999999999999.999 },
  { prop: 'rollingPrepayment', label: '是否滚动预付', required: true, type: 'select', dict: 18 },
  { prop: 'centralizedSettle', label: '是否集中结账', required: true, type: 'select', dict: 18 },
  { prop: 'centralizedSettlePlace', label: '集中结账地', type: 'select', filterable: true, dict: 224 },
  { prop: 'supplyChainFinance', label: '供应链金融', type: 'select', sysDict: 10040 },
  /* { prop: 'acceptInvoice', label: '是否承兑', disabled: true, type: 'select', options: YN_SELECT_LIST },
  { prop: 'acceptRatio', label: '承兑比例', type: 'select', options: ACCEPT_RATIO_SELECT_LIST },
  { prop: 'acceptMoney', label: '承兑金额(万元)', type: 'number', max: 999999999999.999 },
  { prop: 'acceptPeriod', label: '银行承兑期限（月）', type: 'select', options: ACCEPT_PERIOD_SELECT_LIST },
  { prop: 'commercialAcceptancePeriod', label: '商业承兑期限（天）', type: 'number', precision: 0, min: 1, max: 365 },
  { prop: 'acceptDiscountPoint', label: '承兑贴息点位（%）', required: false, disabled: false, type: 'number', min: 0 }, */
  { prop: 'taxBillMoneyLimit', label: '税票提供限额（元）', type: 'number', max: 999999999999.999 },
  { prop: 'taxBillTimeLimit', label: '税票提供时限（天）', type: 'number', min: 0 },
  /* { prop: 'acceptBankRequire', label: '承兑银行有无要求', type: 'select', dict: 264 },
  { prop: 'acceptConversionFactor', label: '承兑折算系数', required: false, disabled: false, type: 'number' }, */
  { prop: 'costConversionFactor', label: '综合成本折算系数', required: false, disabled: false, type: 'number' },
  // { prop: 'acceptBankRequireRemark', label: '承兑银行要求描述', type: 'annex', typeList: 'xlsx/xls/docx/doc/pdf/jpge/jpg/png' },
]

// 财务信息
const FINANCIAL_INFORMATION_FIELDS = [
  { prop: 'contractCode', label: '合同编号', source: 'contract', disabled: true },
  { prop: 'partyA', label: '甲方', source: 'contract', disabled: true },
  { prop: 'partyB', label: '乙方', source: 'contract', disabled: true },
  { prop: 'contractStartTime', label: '合同开始时间', source: 'contract', type: 'datetime' },
  { prop: 'contractEndTime', label: '合同结束时间', source: 'contract', type: 'datetime' },
  { prop: 'contractType', label: '合同类型', source: 'contract', type: 'select', dict: 258 },
  // { prop: 'contractClassify', label: '合同类别', source: 'contract', type: 'select', dict: 259 },
  { prop: 'reconciliation', label: '是否对账', disabled: true, type: 'select', dict: 18 },
  { prop: 'priceIncreaseNotice', label: '涨价提前通知时间（天）', source: 'contract', type: 'select', dict: 230 },
  { prop: 'priceBaseOnRawMaterial', label: '约定价格是否依据原材料进行公式核算', source: 'contract', type: 'select', options: YN_SELECT_LIST, defaultValue: 2 },
  // { prop: 'rawMaterialName', label: '原材料名称', source: 'contract' },
  // { prop: 'rawMaterialPriceRef', label: '原材料价格参照方', source: 'contract' },
  // { prop: 'rawMaterialPriceFloatRate', label: '原材料价格浮动率（%）', source: 'contract' },
  // { prop: 'goodsName', label: '产品名称', source: 'contract' },
  // { prop: 'goodsPriceFloatRate', label: '产品价格浮动率（%）', source: 'contract' },
  { prop: 'stockInsurance', label: '是否库存保价', required: true, type: 'select', dict: 18 },
  { prop: 'stockInsuranceRemark', label: '库存保价说明', maxlength: 100 },
  { prop: 'cooperativeType', label: '合作方式', source: 'contract', type: 'select', dict: 13 },
  { prop: 'agencyRegion', label: '代理地区', maxlength: 100 },
  { prop: 'cooperationArea', label: '合作区域', source: 'contract', type: 'provinceSelect', multiple: true },
  { prop: 'cooperativeBrand', label: '合作品牌', source: 'contract', type: 'brandSelect' },
  { prop: 'salesChannelArr', label: '销售渠道', required: true, type: 'select', dict: 315, multiple: true },
  { prop: 'lastYearPurchaseAmount', label: '去年进货额（元）', disabled: true, type: 'number', defaultValue: 0 },
  { prop: 'yearPurchaseAmount', label: '本年进货额（元）', disabled: true, type: 'number', defaultValue: 0 },
  { prop: 'purchaseAddRatio', label: '进货涨浮比例（%）', disabled: true, type: 'number', defaultValue: 0 },
]

// 质保信息
const WARRANTY_INFORMATION_FIELDS = [
  { prop: 'initialCapital', label: '铺底金（万元）', source: 'contract', type: 'number', min: 0, defaultValue: 0 },
  { prop: 'initialCapitalCollectType', label: '铺底金收取方式', disabled: true, source: 'contract', type: 'select', dict: 261 },
  { prop: 'retentionMoney', label: '质量保证金（万元）', source: 'contract', type: 'number', min: 0, defaultValue: 0 },
  { prop: 'retentionMoneyCollectType', label: '质量保证金收取方式', disabled: true, source: 'contract', type: 'select', dict: 260 },
  { prop: 'etcQaRatio', label: '铺底质保占比', disabled: true },
  { prop: 'etcQaExecuteAreaArr', label: '铺底质量保证金执行区域', disabled: true, type: 'managementArea', multiple: true, hiddenKeys: ['1'] },
  { prop: 'securityDepositDay', label: '要求乙方补足质量保证金的时间要求（天）', source: 'contract', type: 'number', min: 0, },
]

// 返利信息
const REBATE_INFORMATION_FIELDS = [
  { prop: 'rebate', label: '是否返利', source: 'contract', type: 'select', dict: 18, defaultValue: 31 },
  { prop: 'monthlyRebateStandard', label: '月度返利标准', source: 'contract', maxlength: 200 },
  { prop: 'monthlyRebateMoneyStep', label: '月度返利阶梯金额（万元）', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'monthlyRebateRatio', label: '月度返利比例/金额', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'quarterlyRebateStandard', label: '季度返利标准', source: 'contract', maxlength: 200 },
  { prop: 'quarterlyRebateMoneyStep', label: '季度返利阶梯金额（万元）', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'quarterlyRebateRatio', label: '季度返利比例/金额', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'halfYearRebateStandard', label: '半年度返利标准', source: 'contract', maxlength: 200 },
  { prop: 'halfYearRebateMoneyStep', label: '半年度返利阶梯金额（万元）', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'halfYearRebateRatio', label: '半年度返利比例/金额', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'yearRebateStandard', label: '年度返利标准', source: 'contract', maxlength: 200 },
  { prop: 'yearRebateMoneyStep', label: '年度返利阶梯金额（万元）', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'yearRebateRatio', label: '年度返利比例/金额', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'overallRebateRatio', label: '预计整体返利比例/金额', type: 'inputNum', min: 0 },
  { prop: 'rebateCalculateType', label: '返利计算方式', type: 'select', dict: 250 },
  { prop: 'rebateCalculateLogic', label: '返利计算逻辑', type: 'select', dict: 251 },
  { prop: 'rebateCashType', label: '返利兑现方式', type: 'select', dict: 241 },
  { prop: 'rebateInvoice', label: '返利是否开票', type: 'select', dict: 18 },
  { prop: 'rebateExecuteTime', label: '返利执行时间', maxlength: 100 },
  { prop: 'rebateCashDays', label: '年度返利兑现天数', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'rebateCashDaysSeason', label: '月/季度返利兑现天数', source: 'contract', type: 'inputNum', min: 0 },
  { prop: 'includedRebateNextYear', label: '是否计入来年返利', type: 'select', sysDict: 10040 },
  { prop: 'otherRebate', label: '其他返利条款', source: 'contract' },
]

// 交付信息
const DELIVERY_INFORMATION_FIELDS = [
  { prop: 'arrivalPeriod', label: '到货周期（天）', source: 'contract', type: 'number', min: 0 },
  { prop: 'freightPayer', label: '运费承担方', source: 'contract', type: 'select', sysDict: 10146 },
  { prop: 'arrivalTime', label: '到货时间', required: true, type: 'select', dict: 225 },
  { prop: 'acceptanceProportion', label: '验收比例', required: true, type: 'number', min: 0.1, max: 1 },
  { prop: 'minReturnAmount', label: '最小退货金额（元）', required: true, type: 'number' },
  { prop: 'minPurchaseQuantity', label: '单次最小要货量（万元）', required: true, type: 'number' },
  { prop: 'deliveryPlace', label: '交付地点', required: true, type: 'select', sysDict: 10152 },
  // { prop: 'handlingStandard', label: '工装装卸标准', required: true, type: 'select', dict: 226 },
  { prop: 'handlingStandard', label: '工装装卸标准', required: true, type: 'select', sysDict: 10065 },
  { prop: 'purchaseStatus', label: '进货状态', required: true, type: 'select', dict: 255 },
  { prop: 'stopPurchaseReason', label: '停止进货原因', disabled: true, maxlength: 200 },
  { prop: 'dischargeCargo', label: '卸货方', required: true, type: 'select', dict: 252 },
  { prop: 'packingRequire', label: '包装要求', required: true, type: 'select', dict: 254 },
  { prop: 'otherPackRequirements', label: '其它包装要求', disabled: true, type: 'textarea' },
  { prop: 'otherCovenants', label: '甲乙双方另行约定事项', required: true, defaultValue: '无' },
  { prop: 'warrantyMonths', label: '质量保证期（月）', source: 'contract', type: 'number' },
  { prop: 'substandardGoodsChangeDays', label: '不符合标准商品调换时间（天）', source: 'contract', type: 'number', min: 0 },
  { prop: 'advertisingSupportAmount', label: '广告宣传费（万元/年)', source: 'contract', type: 'number', min: 0 },
  { prop: 'afterSalesServiceFee', label: '维修及售后服务费（%）', source: 'contract', type: 'number', min: 0 },
  { prop: 'afterSalesServiceFeeType', label: '维修及售后服务费收取方式', source: 'contract', type: 'select', dict: 260 },
]

export {
  BUSINESS_INFORMATION_FIELDS,
  BASIC_INFORMATION_FIELDS,
  PRODUCTION_INFORMATION_FIELDS,
  PRODUCT_INFORMATION_FIELDS,
  MANAGEMENT_INFORMATION_FIELDS,
  BILLING_INFORMATION_FIELDS,
  BILLING_METHOD_FIELDS,
  FINANCIAL_INFORMATION_FIELDS,
  WARRANTY_INFORMATION_FIELDS,
  REBATE_INFORMATION_FIELDS,
  DELIVERY_INFORMATION_FIELDS,
}
